package org.mg.frontend.security;

import org.mg.core.entity.Role;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author MG
 * @since 06-04-2013
 */
public class AuthGrantedAuthority implements GrantedAuthority {

    private Role role;

    public AuthGrantedAuthority(Role role) {
        this.role = role;
    }

    @Override
    public String getAuthority() {
        return role.getRole();
    }
}
